package client.controler;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class PackageSender {
	private Socket socket;
	private ObjectOutputStream oos;
    public PackageSender() throws UnknownHostException, IOException {
    	socket = new Socket("localhost",4242);
    	oos = new ObjectOutputStream(socket.getOutputStream());
	}
    public void sendPackage(Object obj) throws IOException{
    	oos.writeObject(obj);
    }
	
}
